package com.baizhi.bzmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bz_menu")
public class Menu {
    @TableId(value = "menu_id",type = IdType.AUTO)
    private int id;
    @TableField("parent_id")
    private int pid;
    @TableField("name")
    private String name;
    @TableField("url")
    private String url;
    @TableField("perms")
    private String perms;
    @TableField("type")
    private int type;
    @TableField("icon")
    private String icon;
    @TableField("order_num")
    private int orderNum;
    @TableField(exist = false)
    private List<Menu> children;
}
